package com.china08.yxyapi.repository.mg.homework;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;

import com.china08.yxyapi.entity.mg.homework.HomeworkQuesGroup;

public interface HomeworkQuesGroupRepository extends MongoRepository<HomeworkQuesGroup, String> {

    List<HomeworkQuesGroup> findBySchoolIdAndTeacherIdAndStageAndSubject(String schoolId, String teacherId,
            String phase, String subject);

    HomeworkQuesGroup findById(String id);

    long countBySchoolIdAndTeacherIdAndStageAndSubject(String teacherId, String teacherId2, String phase,
            String subject);

}
